# -*-coding:utf-8-*-
# flask项目的启动文件
from info import create_app,db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

# 脚本控制
app = create_app('development')
manager = Manager(app)
Migrate(app, db)
manager.add_command('db', MigrateCommand)


# 主页路由
@app.route('/index')
def index():
    return "hello"


if __name__ == '__main__':
    # app.run()
    manager.run()
